//
//  CJModel.swift
//  CJPack
//
//  Created by 陈警卫 on 2023-05-26.
//

import Foundation

class VKTokenModel: Codable, CJHasLoseObject {
    required init() {
        accessToken = ""
        refreshToken = ""
    }
    
    let accessToken: String
    let refreshToken: String
}

class VKUserInfoModel: Codable {
    
    let userId: String
    let userName: String
    let headImg: String
    let email: String?
    let privileges: [String]
}

class VKLoginModel: Codable {
    let token: VKTokenModel
    let userInfo: VKUserInfoModel
}

class VKRespModel: Codable {
    @CJLoseObject var token: VKTokenModel
    @CJCoverInt var code: String
    let message: String
    let data: VKLoginModel
    
    init(token: VKTokenModel, code: String, message: String, data: VKLoginModel) {
        self.token = token
        self.code = code
        self.message = message
        self.data = data
    }
}
